<template>
  <view>
  <view v-for="(item,index) in items" :key="index">
    <MyPage :type='item.type' :info='item' ></MyPage>
  </view>
  </view>
</template>
<script>
import MyPage from './components/MyPage'
export default {
  components: {
   MyPage
  },

  data() {
    return {
      title: "Hello",
      items:[]
    };
  },

  onLoad() {
this.getInfo()
  },

  methods: {
	async getInfo(){
 let res=  await this.$request.get('/page/detail')
  this.items=res.data.pageData.items

	}
  },
};
</script>

<style lang='scss'>
</style>
